package org.example.myleet.p1018;

import org.example.myleet.Utils.Assert;

import java.util.ArrayList;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(Assert.isPass(parse(new boolean[]{true}), solution.prefixesDivBy5(new int[]{0})));
        Assert.isTrue(Assert.isPass(parse(new boolean[]{false}), solution.prefixesDivBy5(new int[]{1})));
        Assert.isTrue(Assert.isPass(parse(new boolean[]{true,false,false}), solution.prefixesDivBy5(new int[]{0,1,1})));
        Assert.isTrue(Assert.isPass(parse(new boolean[]{false,false,false}), solution.prefixesDivBy5(new int[]{1,1,1})));
        Assert.isTrue(Assert.isPass(parse(new boolean[]{true,false,false,false,true,false}), solution.prefixesDivBy5(new int[]{0,1,1,1,1,1})));
        Assert.isTrue(Assert.isPass(parse(new boolean[]{false,false,false,false,false}), solution.prefixesDivBy5(new int[]{1,1,1,0,1})));
        Assert.isTrue(Assert.isPass(parse(new boolean[]{false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,true,false,false,true,true,true,true,false}), solution.prefixesDivBy5(new int[]{1,0,0,1,0,1,0,0,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,0,0,0,0,1,1,0,1,0,0,0,1})));
    }

    private static List<Boolean> parse(boolean[] answer) {
        List<Boolean> ans = new ArrayList<>(answer.length);
        for (int i=0; i<answer.length; i++) {
            ans.add(answer[i]);
        }
        return ans;
    }
}
